<?
        $results = array();
        require_once('../inc/EmployeeInfo.php');
        if(isset($_POST['user_ID']))
        {
                $row = $_POST;
                $results = addInfo($row);
                if($results === true)
                {
                		echo "in results";
               			header("Location: index.php");
                        die();
                }
        }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
<title>Add Address</title>
</head>

<body>
<div class="container">
            <div id="contents">
               <dl class="error">
                        <? foreach ($results as $key => $value): ?>
                                                <dt><?=$key?></dt>
                                                <dd><?=$value?></dd>
                                        <? endforeach; ?>
                </dl>

 <form class="form-horizontal" method="post" action="">
 
                        <input type="hidden" name="user_ID" value="<?=$_REQUEST['id']?>" />
                    <div class=" control-group">
                        <label class="control-label" for="payRate">Pay Rate:</label>
                        <div class="controls">
                            <input type="text" name="payRate" id="payRate" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="status">Status:</label>
                        <div class="controls">
                            <input type="text" name="status" id="status" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="department">Department:</label>
                        <div class="controls">
                            <input type="text" name="department" id="department" />
                        </div>
                    </div>
                 <input class="btn btn-primary" type="submit" value="Add" />
             </form>
         </div>    
	</div>
</body>

</html>
